/**
 * @ClassName DepartmentServiceImpl
 * @Description TODO
 * @Author 沉默小吴
 * @Date 2024/12/17 14:57
 */
package com.tledu.operate.count.service.impl;

import com.tledu.operate.count.entity.Department;
import com.tledu.operate.count.mapper.DepartmentRepository;
import com.tledu.operate.count.service.IDepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepartmentServiceImpl implements IDepartmentService {
    @Autowired
    private DepartmentRepository departmentRepository;

    public List<Department> getAllDepartments() {
        return departmentRepository.findAll();
    }
}